<?php
namespace Portal\Controller;
use Common\Controller\HomebaseController; 
/**
 * 首页
 */
class IndexController extends HomebaseController {
	
	public function index() {
    	$this->display(":index");
    }
	
	public function pege1() {
    	$this->display(":pege1");
    }
	public function pege2() {
    	$this->display(":pege2");
    }
	public function pege3() {
    	$this->display(":pege3");
    }
	public function about() {
    	$this->display(":about");
    }
	public function dt() {
		$where['post_status']=1;
		$list=M('posts')->where($where)->select();
		$this->assign('list',$list);
    	$this->display(":dt");
    }
	public function lx() {
    	$this->display(":lx");
    }
	public function zxns() {
    	$this->display(":zxns");
    }	
    public function show() {
    	$article_id=I('id',0,'intval');
    	$posts_model=M("Posts");
    	$article=$posts_model->alias("a")->where(array('a.id'=>$article_id,))->find();
    	$this->assign('article',$article);
		$this->display(":show");
    }

	

}


